﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Page.Master" AutoEventWireup="true"
    CodeBehind="CMS_ProfileFilterForm.aspx.cs" Inherits="_4T.CMS_ProfileFilterForm" %>

<%@ Register Src="ASCX/UploadZone.ascx" TagName="UploadZone" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainPlaceHolder" runat="server">
    <script type="text/javascript">
        SetCurrentMenu('liFilter')
    </script>
    <script type="text/javascript">
        function CheckValidate() {
            if (document.getElementById("MainPlaceHolder_txtDescription").value == "") {
                alert("Vui lòng nhập nhận xét");
                return false;
            }

            if (document.getElementById("MainPlaceHolder_txtCreatedDate").value == "") {
                alert("Vui lòng nhập thời gian sơ tuyển");
                return false;
            }




            var Verifier = document.getElementById("MainPlaceHolder_ddlVerifierList").value;
            var Result = document.getElementById("MainPlaceHolder_ddlFilterResult").value;

            if (Result == 1) {
                var r = confirm("Bạn đã chọn " + Verifier + " , nhấn Ok để xác nhận, và Cancle để chọn lại người xác minh!");
                if (r == false)
                    return false;
            }
        }
    </script>
    <div class="grid_12">
        <div class="block-border">
            <form class="block-content form" id="simple_form" runat="server">
                <asp:HyperLink runat="server" ID="hplEdit" CssClass="with-tip edit-form" ToolTip="Chỉnh sửa">
                    <img height="16" width="16" src="images/icons/fugue/edit-validated.png"/>
                </asp:HyperLink>
                <h1>Thông tin hồ sơ</h1>
                <dl class="accordion">
                    <dt><span class="number">1</span> Thông tin bệnh nhân</dt>
                    <dd>
                        <fieldset>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">
                                        Họ tên:
                                    </label>
                                </div>
                                <div class="rp_right">
                                    <asp:TextBox ID="lbPatientName" class="full-width" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">
                                        Ngày sinh:
                                    </label>
                                </div>
                                <div class="rp_right">
                                    <asp:TextBox ID="lbDOB" class="full-width datepicker" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">
                                        Giới tính:
                                    </label>
                                </div>
                                <div class="rp_right">
                                    <asp:DropDownList ID="ddlGender" runat="server">
                                        <asp:ListItem Value="Male" Text="Nam"></asp:ListItem>
                                        <asp:ListItem Value="Female" Text="Nữ"></asp:ListItem>
                                    </asp:DropDownList>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">
                                        CMND:
                                    </label>
                                </div>
                                <div class="rp_right">
                                    <asp:TextBox ID="lbIDNumber" class="full-width" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">Địa chỉ thường trú: </label>
                                </div>
                                <div class="rp_right">
                                    <asp:TextBox ID="lbPermAddr" class="full-width" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">Địa chỉ tạm trú: </label>
                                </div>
                                <div class="rp_right">
                                    <asp:TextBox ID="lbTempAddr" class="full-width" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">Số điện thoại di động: </label>
                                </div>
                                <div class="rp_right">
                                    <asp:TextBox ID="lblMobileNumber" class="full-width" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">Số điện thoại cố định: </label>
                                </div>
                                <div class="rp_right">
                                    <asp:TextBox ID="lbPhoneNumber" class="full-width" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">Người đại diện liên hệ khi khẩn cấp: </label>
                                </div>
                                <div class="rp_right">
                                    <asp:TextBox ID="lbRepresentativeName" class="full-width" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">Số điện thoại: </label>
                                </div>
                                <div class="rp_right">
                                    <asp:TextBox ID="lbRepresentativePhone" class="full-width" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">Đầu mối liên hệ ở địa phương. Tên: </label>
                                </div>
                                <div class="rp_right">
                                    <asp:TextBox ID="lbLocalContactName" class="full-width" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">Số điện thoại: </label>
                                </div>
                                <div class="rp_right">
                                    <asp:TextBox ID="lbLocalContactPhone" class="full-width" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">Cán bộ y tế: </label>
                                </div>
                                <div class="rp_right">
                                    <asp:TextBox ID="lbMedicalStaff" class="full-width" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">Số điện thoại: </label>
                                </div>
                                <div class="rp_right">
                                    <asp:TextBox ID="lbMedicalStaffPhone" class="full-width" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">Cơ sở y tế đang điều trị: </label>
                                </div>
                                <div class="rp_right">
                                    <asp:TextBox ID="lbMedicalFacility" class="full-width" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">Ghi chú khác: </label>
                                </div>
                                <div class="rp_right">
                                    <asp:TextBox ID="lbNote" class="full-width" runat="server"></asp:TextBox>
                                </div>
                            </div>
                        </fieldset>
                    </dd>
                    <dt><span class="number">2</span> Tóm tắt bệnh án</dt>
                    <dd>
                        <fieldset>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">
                                        Chuẩn đoán
                                    </label>
                                </div>
                                <div class="rp_right">
                                    <asp:TextBox ID="lblDiagnosis" class="full-width" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">
                                        Thời gian mắc bệnh:
                                    </label>
                                </div>
                                <div class="rp_right">
                                    <asp:TextBox ID="lbMedicalTime" class="full-width datepicker" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">
                                        Phương pháp cần chữa trị:
                                    </label>
                                </div>
                                <div class="rp_right">
                                    <asp:TextBox ID="lbTreatmentMethod" class="full-width" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">
                                        Hoàn cảnh, khó khăn đang gặp phải:
                                    </label>
                                </div>
                                <div class="rp_right">
                                    <asp:TextBox ID="lbSituation" class="full-width" runat="server"></asp:TextBox>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">Cần giúp đỡ: </label>
                                </div>
                                <div class="rp_right">
                                    <asp:TextBox ID="lbSupport" class="full-width" runat="server"></asp:TextBox>
                                </div>
                            </div>
                        </fieldset>
                    </dd>
                    <dt><span class="number">3</span> Người cung cấp thông tin</dt>
                    <dd>
                        <fieldset>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">
                                        Họ tên:
                                    </label>
                                </div>
                                <div class="rp_right">
                                    <asp:Label ID="lbInfoSupplierName" runat="server"></asp:Label>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">
                                        Số điện thoại:
                                    </label>
                                </div>
                                <div class="rp_right">
                                    <asp:Label ID="lbInfoSupplierPhone" runat="server"></asp:Label>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">
                                        Mã số:
                                    </label>
                                </div>
                                <div class="rp_right">
                                    <asp:Label ID="lbPersonalCode" runat="server"></asp:Label>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">
                                        Email: 
                                    </label>
                                </div>
                                <div class="rp_right">
                                    <asp:Label ID="lbEmail" runat="server"></asp:Label>
                                </div>
                            </div>
                        </fieldset>
                    </dd>
                    <dt><span class="number">4</span> Hình ảnh, video</dt>
                    <dd>
                        <script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
                        <script type="text/javascript">
                            function playvideo(url) {
                                jwplayer("video").setup({
                                    width: 250,
                                    height: 200,
                                    file: url
                                    //width: 200,
                                    //height: 100
                                    //image: "/uploads/myPoster.jpg"
                                });
                            }
                        </script>
                        <fieldset>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">
                                        Các hình ảnh liên quan:
                                    </label>
                                </div>
                                <div class="rp_right">
                                    <asp:Literal ID="ltrImage" runat="server"></asp:Literal>
                                </div>
                            </div>
                            <div class="rpContain">
                                <div class="rp_left">
                                    <label for="complex-title">
                                        Video:
                                    </label>
                                </div>
                                <div class="rp_right">
                                    <div style="float: left;">
                                        <div id="video"></div>
                                    </div>
                                    <div style="float: right; font-weight: bold; margin-top: 10px; color: Black;">
                                        <asp:Literal runat="server" ID="ltrVideoDesc"></asp:Literal>
                                    </div>
                                </div>
                            </div>
                        </fieldset>
                    </dd>
                </dl>
                <fieldset>
                    <legend>Thông tin sơ tuyển</legend>
                    <div class="rpContain">
                        <div class="rp_left">
                            <label for="complex-title" class="required">
                                Nhận xét sơ tuyển:
                            </label>
                        </div>
                        <div class="rp_right">
                            <asp:TextBox ID="txtDescription" runat="server" ValidationGroup="Filter" TextMode="MultiLine" CssClass="full-width"></asp:TextBox>
                        </div>
                    </div>
                    <div class="rpContain">
                        <div class="rp_left">
                            <label for="complex-title">
                                Kết quả sơ tuyển:
                            </label>
                        </div>
                        <div class="rp_right">
                            <asp:DropDownList ID="ddlFilterResult" runat="server" AutoPostBack="true"
                                OnSelectedIndexChanged="ddlFilterResult_SelectedIndexChanged" CssClass="full-width">
                                <asp:ListItem Value="1" Text="Chấp nhận"></asp:ListItem>
                                <asp:ListItem Value="0" Text="Loại bỏ"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="rpContain">
                        <div class="rp_left">
                            <label for="complex-title">
                                Người xác minh:
                            </label>
                        </div>
                        <div class="rp_right">
                            <asp:DropDownList ID="ddlVerifierList" runat="server" CssClass="full-width">
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="rpContain">
                        <div class="rp_left">
                            <label for="complex-title" class="required">Thời gian sơ tuyển:</label>
                        </div>
                        <div class="rp_right">
                            <asp:TextBox ID="txtCreatedDate" runat="server" CssClass="full-width datepicker"></asp:TextBox>
                        </div>
                    </div>
                    <div class="rpContain">
                        <uc2:UploadZone ID="UploadZone1" runat="server" />
                    </div>

                </fieldset>

                <fieldset class="grey-bg no-margin">
                    <asp:HiddenField runat="server" ID="hdfProfileInfoCode" />
                    <p class="input-with-button">
                        <asp:Button ID="btnSave" runat="server" Text="Lưu" CssClass="big-button"
                            OnClick="btnSave_Click" OnClientClick="return CheckValidate()" />
                    </p>
                </fieldset>
            </form>
        </div>
    </div>
</asp:Content>
